<!-- apps/frontend/templates/layout.php -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>FrigoSpeed - Livraison rapide et efficace</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_javascripts() ?>
    <?php include_stylesheets() ?>
  </head>
  <body>
    <div id="container">
      <div id="header">
        <div class="content">
          <h1><a href="<?php echo url_for('utilisateur/index') ?>">
            <img src="/images/logo.jpg" alt="Jobeet Job Board" />
          </a></h1>
        </div>
      </div>
 
      <div id="content">
      	<?php if($sf_user->isAuthenticated()) { ?>
          <div class="flash_notice">
            <?php
        	if($sf_user->getAttribute('user') != "") { 
        		$idUser = $sf_user->getAttribute('iduser');
        	?>
        	<div class="user" style="margin-left: 245px;">
        		<a href="<?php echo url_for('utilisateur/index'); ?>" title="Retourner au menu"><img src="/images/home.jpg" /></a>
        		Bienvenu(e), 
        		<a href="<?php echo url_for("utilisateur/edit?id=$idUser") ?>" style="text-decoration: none"> 
        			<?php echo $sf_user->getAttribute('user'); ?>!
        		</a>   
        		<span style="margin-left: 20px"><a href="<?php echo url_for('utilisateur/logout'); ?>">D&eacute;connexion</a>
        		<br />
        		<span style="font-size: 10px; margin-left: 35px;">(<?php echo $sf_user->getAttribute('userType'); ?>)</span>
        		</span>
        	</div>
        	<?php } ?>
          </div>
        <?php } ?>
 
        <?php if ($sf_user->hasFlash('error')): ?>
          <div class="flash_error">
            <?php echo $sf_user->getFlash('error') ?>
          </div>
        <?php endif; ?>
 
        <div class="content">
          <?php echo $sf_content ?>
        </div>
      </div>
 
      <div id="footer">
        <div class="content">
          <span class="symfony">
          <b>FrigoSpeed</b> powered by <a href="http://www.symfony-project.org/">
            <img src="/images/symfony.gif" alt="symfony framework" />
            </a>
          </span>
        </div>
      </div>
    </div>
  </body>
</html>
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php //include_http_metas() ?>
    <?php //include_metas() ?>
    <?php //include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php //include_stylesheets() ?>
    <?php //include_javascripts() ?>
  </head>
  <body>
    <?php //echo $sf_content ?>
  </body>
</html>

-->